package com.subang.function.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbExamReviewMapper;
import com.subang.function.domain.SbExamReview;
import com.subang.function.service.ISbExamReviewService;

/**
 * 公考模考复盘Service业务层处理
 * 
 * @author subei
 * @date 2025-04-02
 */
@Service
public class SbExamReviewServiceImpl implements ISbExamReviewService 
{
    @Autowired
    private SbExamReviewMapper sbExamReviewMapper;

    /**
     * 查询公考模考复盘
     * 
     * @param id 公考模考复盘主键
     * @return 公考模考复盘
     */
    @Override
    public SbExamReview selectSbExamReviewById(Long id)
    {
        return sbExamReviewMapper.selectSbExamReviewById(id);
    }

    /**
     * 查询公考模考复盘列表
     * 
     * @param sbExamReview 公考模考复盘
     * @return 公考模考复盘
     */
    @Override
    public List<SbExamReview> selectSbExamReviewList(SbExamReview sbExamReview)
    {
        return sbExamReviewMapper.selectSbExamReviewList(sbExamReview);
    }

    /**
     * 新增公考模考复盘
     * 
     * @param sbExamReview 公考模考复盘
     * @return 结果
     */
    @Override
    public int insertSbExamReview(SbExamReview sbExamReview)
    {
        return sbExamReviewMapper.insertSbExamReview(sbExamReview);
    }

    /**
     * 修改公考模考复盘
     * 
     * @param sbExamReview 公考模考复盘
     * @return 结果
     */
    @Override
    public int updateSbExamReview(SbExamReview sbExamReview)
    {
        return sbExamReviewMapper.updateSbExamReview(sbExamReview);
    }

    /**
     * 批量删除公考模考复盘
     * 
     * @param ids 需要删除的公考模考复盘主键
     * @return 结果
     */
    @Override
    public int deleteSbExamReviewByIds(Long[] ids)
    {
        return sbExamReviewMapper.deleteSbExamReviewByIds(ids);
    }

    /**
     * 删除公考模考复盘信息
     * 
     * @param id 公考模考复盘主键
     * @return 结果
     */
    @Override
    public int deleteSbExamReviewById(Long id)
    {
        return sbExamReviewMapper.deleteSbExamReviewById(id);
    }

    @Override
    public List<SbExamReview> selectSbExamReviewListByReviewTime(SbExamReview sbExamReview) {
        return sbExamReviewMapper.selectSbExamReviewListByReviewTime(sbExamReview);
    }

    @Override
    public List<SbExamReview> selectSbExamReviewListByLikes(SbExamReview sbExamReview) {
        return sbExamReviewMapper.selectSbExamReviewListByLikes(sbExamReview);
    }

    @Override
    public List<SbExamReview> selectSbExamReviewListByIds(List<Long> ids) {
        return sbExamReviewMapper.selectSbExamReviewListByIds(ids);
    }

    @Override
    public List<Map<String, Object>> selectGroupExamStatistics(String groupId) {
        return sbExamReviewMapper.selectGroupExamStatistics(groupId);
    }

    @Override
    public List<Map<String, Object>> getGroupPersonal(String userId) {
        return sbExamReviewMapper.getGroupPersonal(userId);
    }

    @Override
    public List<Map<String, Object>> getFirepowerRanking(Map<String, Object> params) {
        return sbExamReviewMapper.getFirepowerRanking(params);
    }
}
